<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page import="com.opensymphony.xwork2.ActionContext" %>  
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@ include file="../../language.jsp" %>

<script type="text/javascript">
var affiche='<fmt:message key="title.tool.affiche" />';
var knowledgeDetails='<fmt:message key="knowledge.label.knowledgeDetails" />';
var im='<fmt:message key="title.tool.im" />';
var personTask='<fmt:message key="title.personTask" />';
var calendarTitle='<fmt:message key="title.calendar"/>';
var shortcutsTitle='<fmt:message key="lable.index.shortcuts"/>';
var myPanel='<fmt:message key="label.dashboard.my.panel" />';
var viewAllTaskRes=false;
var operationTaskRes=false;
var filterId=null;
var requestMain_companyNo=null;
var request_fullSearchFlag=null;
var countQueryType=null;
var currentUser=null;
var countQuery=null;
var creator=null;
var change_companyNo=null;
var change_fullSearchFlag=null;
var type=null;
var kw_opt=null;
var knowledge_queryType=null;
var keyWord =null;
var k="";
var _categoryType=null;
$('#schedule_task_owner_tr').hide();
//记录要自适应的grid
portalGridID = new Array();
</script>
<sec:authorize url="VIEWALLTASKRES">
<script>viewAllTaskRes=true;</script>
</sec:authorize>
<sec:authorize url="OPERATIONTASKRES">
<script>operationTaskRes=true;</script>
</sec:authorize>
<script>
setTimeout(function(){
	var $gallery = $(".lineTable");
});
function shortcuts(){
    // 先定位到我的首页
	basics.tab.tabUtils.openTabById('itsmMainTab',i18n['label.dashboard.my.panel']);
    // 切换到快捷访问
    basics.tab.tabUtils.openTabById('itsmMainTab',i18n['label_quick_launch']);
}
var notPortal=true;
function schedule_showRealTime(){
	$("#schedule_realStartTimeTr").removeAttr("style");
	$("#schedule_realEndTimeTr").removeAttr("style");
	$("#schedule_realFreeTr").removeAttr("style");
}

function schedule_hiddenRealTime(){
	$("#schedule_realStartTimeTr").attr("style","display:none;");
	$("#schedule_realEndTimeTr").attr("style","display:none;");
	$("#schedule_realFreeTr").attr("style","display:none;");
}

function calculationRealFree(val){
	var dayTime = $("#schedule"+val+"_taskCostDay").val();
	var hourTime = $("#schedule"+val+"_taskCostHour").val();
	var minuteTime = $("#schedule"+val+"_taskCostMinute").val();
	var totle = dayTime*24*60+hourTime*60+minuteTime*1;
	$("#schedule"+val+"_realFree").val(totle);
}
$('#schedule_task_owner_tr').show();

</script>
<!-- <div id="helpdeskPortalDiv" style="padding:3px;width: 100%;">
	<div id="helpdeskPortalTab" class="easyui-tabs" fit="true" boder="true" style="height: auto;width: 99%;"> -->
			<!-- 我的面板 -->
			<div id="helpdeskPortalTabid" style="width:99%;padding:3px;height:auto;"> 
			<div id="notPortalDiv" style="display:none; background-color:#e4edfe;text-align:center; font-weight:bold;height: 20px;padding-top: 12px;"><fmt:message key="label.notPortal"/></div>
			<input type="hidden" id="rowsWid" value="${userCustomDTO.layoutType}">
				
				<c:set var="rowWidth" value="50"></c:set>
				<c:if test="${userCustomDTO.layoutType eq 'oneRow'}">
				<c:set var="portalLayoutType" value="1"></c:set>
				</c:if>
				<c:if test="${userCustomDTO.layoutType eq 'twoRow'}">
				<c:set var="portalLayoutType" value="2"></c:set>
				</c:if>
				<c:if test="${userCustomDTO.layoutType eq 'threeRow'}">
				<c:set var="portalLayoutType" value="3"></c:set>
				</c:if>
				<c:if test="${userCustomDTO.layoutType eq 'fourRow'}">
				<c:set var="portalLayoutType" value="4"></c:set>
				</c:if>
				<c:forEach end="${portalLayoutType}" begin="1" step="1" var="data" varStatus="vs">
					<c:if test="${vs.count%portalLayoutType eq 1 or (portalLayoutType eq 1 and vs.count%portalLayoutType eq 0) }">
						<c:set var="rowWidth" value="${userCustomDTO.rowsWidth.oneRows}"></c:set>
					</c:if>
					<c:if test="${vs.count%portalLayoutType eq 2 or (portalLayoutType eq 2 and vs.count%portalLayoutType eq 0) }">
						<c:set var="rowWidth" value="${userCustomDTO.rowsWidth.twoRows}"></c:set>
					</c:if>
					<c:if test="${vs.count%portalLayoutType eq 3 or (portalLayoutType eq 3 and vs.count%portalLayoutType eq 0) }">
						<c:set var="rowWidth" value="${userCustomDTO.rowsWidth.threeRows}"></c:set>
					</c:if>
					<c:if test="${vs.count%portalLayoutType eq 4 or (portalLayoutType eq 4 and vs.count%portalLayoutType eq 0) }">
						<c:set var="rowWidth" value="${userCustomDTO.rowsWidth.fourRows}"></c:set>
					</c:if>
					
					<div class="column" id="column_${vs.count }" style="width:${rowWidth}%;height:auto;">
					</div>
				</c:forEach>
				
				
				<c:forEach items="${userCustomDTO.viewdtos}" var="data" varStatus="vs">
				
					<input type="hidden" id="divid_${data.viewId}" value="${data.viewName}">
					<script>
						startProcess();
						notPortal=false;
						var viewRowStr="${userCustomDTO.viewRowsStr}";
						var strIds=viewRowStr.split(':');
						$('#column_'+strIds[${(vs.count)-1}]).append('<div class="portlet" title="${data.viewName}" viewId="${data.viewCode}" id="protlet_${data.viewId}">'+
								'<div class="portlet-header" style="cursor:move;">${data.viewName}</div>'+
								'<div class="portlet-content" id="protlet_content_${data.viewId}"><table id="TAB_ID_${data.viewId}" class="table_css" style="width:100%" cellspacing="1"></table>'+
								'<div id="${data.viewId}_0">'+
								'</div></div>'+
								'</div>');
						endProcess();
					</script>
				</c:forEach>
				<script type="text/javascript">
				//alert(notPortal);
					if(notPortal){
						$('#notPortalDiv').show();
					}
				</script>
			</div>
	<!--查看公告消息 -->
	<div id="afficheDiv1">
	<div id="afficheDiv" class="WSTUO-dialog" title="<fmt:message key="common.detailInfo"/>" style="max-height:400px;width: 420px; height:auto; padding: 3px; line-height: 22px; ">
		<form id="afficheForm">
		<div class="lineTableBgDiv">
		<table style="width: 100%" class="lineTable" cellspacing="1">
			<tr>
				<td style="width:120px"><fmt:message key="label.title"/></td>
				<td >
					<span id="portal_affTitle" style="display:block;width:99%;" class=".wordbreak"></span>
				</td>
			</tr>

			<tr>
				<td><fmt:message key="label.orgSettings.startTime"/></td>
				<td>
					<span id="portal_affStart"></span>
				</td>
			</tr>
			
			<tr>
				<td><fmt:message key="label.orgSettings.stopTime"/></td>
				<td>
					<span id="portal_affEnd"></span>
				</td>
			</tr>
			
			<tr>
				<td><fmt:message key="common.cerateTime"/></td>
				<td>
					<span id="portal_cerateTime"></span>
				</td>
			</tr>
			
			<tr>
				<td class="minw100"><fmt:message key="tool.affiche.content"/></td>
				<td>
					<span id="portal_affContents" style="display:block;width:99%;"  class=".wordbreak"></span>
				</td>
			</tr>
		</table>
		</div>
		</form>
	</div>
	</div>
	<!--查看IM消息 -->
	<div id="lookMessageDiv" class="WSTUO-dialog" title="<fmt:message key="common.detailInfo"/>" style="max-height:400px;width: 400px; height:auto; padding: 3px; line-height: 22px; ">
		<form id="lookMessageForm">
	 	<div  class="lineTableBgDiv">
			<table style="width:100%" class="lineTable" cellspacing="1" >
				<tr>
					<td style="width:30%"><fmt:message key="tool.im.sendUser"/></td>
					<td style="width:70%"><span id="im_sendUser"></span></td>
				</tr>  
				<tr>
					<td><fmt:message key="tool.im.sendTime"/></td>
					<td><span id="im_sendTime"></span></td>
				</tr>
				<tr>
					<td><fmt:message key="tool.im.imTitle"/></td>
					<td><span id="im_title"></span></td>
				</tr>  
				 
				<tr>
					<td><fmt:message key="common.state"/></td>
					<td>
						<span id="im_stats"></span>
					</td>
				</tr>  
				
				<tr>
					<td><fmt:message key="tool.im.imContent"/></td>
					<td><span id="im_content"></span></td>
				</tr>
				
			 
			</table>
		</div>
		</form>
	</div>
	
<%-- 来电弹屏 （来电提醒）--%>
<div id="call_window" title="<fmt:message key="label.call.show" />" class="WSTUO-dialog" style="width:720px;height:480px;padding: 0px;">
	<div style="width: 700px; height: 30px;font-size: 20px;" align="center"><fmt:message key="label.dialed.phone.no" />:<span style="font-size: 20px;" id="callNum"></span></div>	
	<div class="easyui-layout" style="width:720px;height:417px;">
		<div region="west" split="true" style="width:200px;">
			<!-- 客户 -->
			<div class="hisdiv" id="customInfo">
				<table style="width:100%" class="histable" cellspacing="1" id="customInfoTable">
					<thead>
						<tr>
							<th style="text-align:center;"><fmt:message key="ID" /></th>
							<th style="text-align:left"><fmt:message key="common.Username" /></th>
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
			</div>
			<br><br><br>
			<div id="callShow_create_user_div">
				<table style="width:100%" class="histable" cellspacing="1">
					<tr>
						<td>
							<a class="easyui-linkbutton" plain="true" id="callShow_create_user_link"><fmt:message key="label.call.create.new.user" /></a> 
							<br>
						</td>
					</tr>
				</table>
			</div>
			<div class="hisdiv">
				<table style="width:100%" class="histable" cellspacing="1">
					<tr>
						<td>
							<a class="easyui-linkbutton" plain="true" id="callShow_create_requet_link"><fmt:message key="tool.mail.creatRequest" /></a> 
							<br>
						</td>
					</tr>
				</table>
			</div>	
		</div>
		<div region="center" style="width:480px;" id="callShowCenter">
			<div class="easyui-tabs" id="callShowTab" fit="true" border="false">
				<div title="<fmt:message key="common.detailInfo" />">
					<div class="lineTableBgDiv" style="width:98%" >
						<table style="width:100%" class="lineTable" cellspacing="1">
							<tr>
								<td><fmt:message key="label.user.userOwnerOrg" /></td>
								<td><span id="callShow_userOwnerOrg"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.userState" /></td>
								<td><span id="callShow_userState"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.sex" /></td>
								<td><span id="callShow_sex"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.userLastName" /></td>
								<td width="60%"><span id="callShow_userLastName"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.userFirstName" /></td>
								<td><span id="callShow_userFirstName"></span></td>
							</tr>
							
							<tr>
								<td><fmt:message key="label.user.userTitle" /></td>
								<td><span id="callShow_userTitle"></span></td>
							</tr>
							
							<tr>
								<td><fmt:message key="label.user.position" /></td>
								<td><span id="callShow_position"></span></td>
							</tr>
							
							<tr>
								<td><fmt:message key="label.user.icCard"/></td>
								<td><span id="callShow_icCard"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.pinyin"/></td>
								<td><span id="callShow_pinyin"></span></td>
							</tr>
							
							<tr>
								<td><fmt:message key="label.user.birthday"/></td>
								<td><span id="callShow_birthday"></span></td>
							</tr>
							
							<tr>
								<td><fmt:message key="label.user.email"/></td>
								<td><span id="callShow_email"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.mobile"/></td>
								<td><span id="callShow_mobile"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.phone" /></td>
								<td><span id="callShow_phone"></span></td>
							</tr>
							
							<tr>
								<td><fmt:message key="label.user.fax"/></td>
								<td><span id="callShow_fax"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.qqOrMsn" /></td>
								<td><span id="callShow_qqOrMsn"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.workAddress" /></td>
								<td><span id="callShow_workAddress"></span></td>
							</tr>
							<tr>
								<td><fmt:message key="label.user.description" /></td>
								<td><span id="callShow_description"></span></td>
							</tr>
						</table>
					</div>
				</div>
				<div title="<fmt:message key="label.request.withAssets" />">
					<table id="callShowRelatedCiGrid"></table>
					<div id="callShowRelatedCiPager"></div>
				</div>
				<div title="<fmt:message key="change.relatedRequest" />" style="overflow-x: hidden;" >
					<table id="callShowRelatedRequestGrid"></table>
					<div id="callShowRelatedRequestPager"></div>
				</div>
			</div>
		</div>
	</div>
</div>

<!--创建请求-->
<div id="callShow_create_request_window"  class="WSTUO-dialog" title="<fmt:message key="tool.mail.creatRequest"/>" style="width:580px;height:auto">
<form id="callShow_create_request_form">
<input type="hidden" name="requestDTO.actionName" value="<fmt:message key="common.add" />"  />
<input type="hidden" name="requestDTO.creator" value="${loginUserName}"  />
<div class="lineTableBgDiv">
		<table style="width:100%" class="lineTable" cellspacing="1">


	<!-- 所属客户  -->
	<tr <c:if test="${versionType!='ITSOP'}"><c:out value="style=display:none"></c:out></c:if>>
		<td><fmt:message key="label.belongs.client" />&nbsp;<span style="color:red">*</span></td>
		<td colspan="3">
			<input type="hidden" name="requestDTO.companyNo" id="callShow_request_companyNo" />
			<input id="callShow_request_companyName" class="easyui-validatebox choose" required="true"  readonly />
		</td>
	</tr>
	<tr>
		<td style="width:20%"  ><fmt:message key="tool.mail.toReuqest.title"/></td>
		<td style="width:80%" colspan="3" ><input name="requestDTO.etitle" id="callShow_request_etitle"  class="easyui-validatebox input" required="true" /></td>
	</tr>
	<tr>
		<td><fmt:message key="tool.mail.toReuqest.content"/></td>
		<td colspan="3">
		<textarea name="requestDTO.edesc" id="callShow_request_edesc"  style="height:200px;" class="easyui-validatebox input" required="true"></textarea>
		</td>
	</tr>
	<tr>
		<td><fmt:message key="tool.mail.toReuqest.createByUser"/></td>
		<td colspan="3">
			<input  id="callShow_selectCreator" name="requestDTO.createdByName"  class="easyui-validatebox input" required="true" style="width:85%;cursor:pointer" />
			<input  id="callShow_addRequestUserId" type="hidden" name="requestDTO.createdByNo" style="width:98%;color:#555;" />
		</td>
	</tr>
	<tr>
		<td><fmt:message key="tool.mail.toReuqest.effectCI"/></td>
		<td colspan="3">
			<input style="width:85%;cursor:pointer"  id="callShow_ciname" />
			<input  id="callShow_ciid" type="hidden" name="requestDTO.ciId" />
			<a class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="cleanIdValue('callShow_ciid','callShow_ciname')" title="<fmt:message key="label.request.clear" />"></a>
		</td>
	</tr>
	<tr>
		<td><fmt:message key="tool.mail.toReuqest.category"/></td>
		<td>
			<input type="hidden" name="requestDTO.requestCategoryNo" id="callShow_request_categoryNo" />
			<input name="requestDTO.requestCategoryName"  id="callShow_request_categoryName"  style="width:96%;cursor:pointer" readonly/>
			
		</td>	
		<td><fmt:message key="label.request.complexity"/></td>
		<td>
			<select id="callShow_request_level" name="requestDTO.levelNo" class="input">
			</select>
		</td>
		
	</tr>
	<tr>
		<td><fmt:message key="tool.mail.toReuqest.effect"/></td>
		<td>
			<select id="callShow_request_effectRange" name="requestDTO.effectRangeNo" class="input"></select>
		</td>
		<td><fmt:message key="tool.mail.toReuqest.emergencyDegree"/></td>
		<td>
			<select id="callShow_request_seriousness" name="requestDTO.seriousnessNo" class="input"></select>
		</td>
	</tr>
	<tr>
		<td><fmt:message key="tool.mail.toReuqest.priority"/></td>
		<td>
			<select id="callShow_request_priority" name="requestDTO.priorityNo" class="input"></select>
		</td>
		<td><fmt:message key="tool.mail.toReuqest.form"/></td>
		<td>
			<select id="callShow_request_imode" name="requestDTO.imodeNo" class="input"></select>
		</td>
	</tr>

	<tr>			
		<td colspan="4">
	   
	   		<input type="hidden" name="requestDTO.technicianName" />
	    	<a id="callShow_save_request_link" class="easyui-linkbutton" icon="icon-ok" ><fmt:message key="common.save"/></a>&nbsp;&nbsp;&nbsp;&nbsp;
	   
		</td>
	</tr>
	
</table>
</div>
</form>
</div>


<!-- 选择组 -->
<div id="callShow_addUserForm_userGroup_win" class="WSTUO-dialog" title="<fmt:message key="label.user.userOwnerOrg" />" style="width:420px;height:400px;padding:5px;">
<div id="callShow_userGroupTree"></div>
</div>

<!-- 创建用户 -->
<div id="callShow_create_user_window" class="WSTUO-dialog" title="<fmt:message key="label.call.create.new.user"/>" style="width:650px;height:auto">
<!-- 添加用户 -->
<div class="easyui-layout" style="width:100%;height:430px">
	<div region="west" split="true" title="<fmt:message key="common.basicInfo" /> " style="width:300px">
	<div class="lineTableBgDiv">
		<form id="callShow_addUserForm">
		<input type="hidden" name="userDto.companyNo" id="callShow_user_companyNo" />
		<input type="hidden" name="userDto.roleCode" id="callShow_user_roleCode" />
		<table style="width:100%" class="lineTable" cellspacing="1">
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.loginName" /></td>
			<td><input name="userDto.loginName" id="callShow_user_loginName"  class="easyui-validatebox input" validType="loginName" required="true"  /></td>
		</tr>
		<tr id="password_tr">
			<td class="formTableTd"><fmt:message key="label.user.loginPassword" /></td>
			<td><input name="userDto.password" id="callShow_user_password" class="easyui-validatebox input" validType="useEnCharPwd" required="true" /></td>
		</tr>
		<tr id="rpassword_tr">
			<td class="formTableTd"><fmt:message key="label.user.comfirmLoginPassword" /></td>
			<td><input id="callShow_user_rpassword" name="rpassword" class="easyui-validatebox input" validType="equalTo['callShow_user_password']" required="true"/></td>
		</tr>
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.userLastName" /></td>
			<td><input name="userDto.lastName" class="easyui-validatebox input" required="true"/></td>
		</tr>
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.userFirstName" /></td>
			<td><input  name="userDto.firstName" class="easyui-validatebox input" required="true" /></td>
		</tr>
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.userOwnerOrg" /></td>
			<td>
				<input id="callShow_user_orgName" name="orgName" readonly="readonly" class="easyui-validatebox input" required="true"  style="cursor:pointer" />
				<input type="hidden" name="userDto.orgNo" id="callShow_user_orgNo" />
			</td>
		</tr>
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.userTitle" /></td>
			<td><input name="userDto.job" id="job" class="input" /></td>
		</tr>
		
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.position" /></td>
			<td><input name="userDto.position" id="user_position" class="input" /></td>
		</tr>
		
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.userState" /></td>
			<td>
			<input type="radio" name="userDto.userState" id="userState" value="true" checked="checked" /><fmt:message key="common.enable" /> 
			<input type="radio" name="userDto.userState" id="userState1" value="false" /><fmt:message key="common.disable" /></td>
		</tr>
		
		<tr>
			<td class="formTableTd"><fmt:message key="label.user.sex" /></td>
			<td>
			<input type="radio" name="userDto.sex" id="user_sex_man" value="true" checked="checked" /><fmt:message key="label.user.man" /> 
			<input type="radio" name="userDto.sex" id="user_sex_woman" value="false" /><fmt:message key="label.user.woman" /></td>
		</tr>
	</table>
	</form>
	</div>
	
	</div>
	<div region="center" title="<fmt:message key="common.detailInfo" />">
		<div id="callShow_userOtherInfo" class="easyui-tabs" fit="true" style="width: 100%; height: 100%;" border="none">
			<div title="<fmt:message key="title.user.contactInfo" />">
			<div class="lineTableBgDiv" style="width:92%" >
			<form id="callShow_userOtherInfo_form">
			<table style="width:100%" class="lineTable" cellspacing="1">
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.icCard"/></td>
					<td><input name="userDto.icCard" id="callShow_user_user_icCard" class="input" /></td>
				</tr>
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.pinyin"/></td>
					<td><input name="userDto.pinyin" id="callShow_user_user_pinyin" class="input" /></td>
				</tr>
				
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.birthday"/></td>
					<td><input name="userDto.birthday" id="callShow_user_user_birthday" class="easyui-validatebox choose" validType="gtNowTimeReg" readonly /></td>
				</tr>
				
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.email"/></td>
					<td><input name="userDto.email" id="callShow_user_email" class="easyui-validatebox input" validType="email" /></td>
				</tr>
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.mobile"/></td>
					<td><input name="userDto.moblie" id="callShow_user_moblie"  class="easyui-validatebox input" validType="mob" /></td>
				</tr>
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.phone" /></td>
					<td><input name="userDto.phone" id="callShow_user_phone" value="111" class="easyui-validatebox input" validType="phone" /></td>
				</tr>
				<tr>
					<td class="formTableTd"><fmt:message key="label_extension" /></td>
					<td><input name="userDto.extension" id="callShow_user_extension"  class="input" /></td>
				</tr>
				
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.fax"/></td>
					<td><input name="userDto.fax" id="callShow_user_fax"   class="easyui-validatebox input" validType="phone" /></td>
				</tr>
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.qqOrMsn" /></td>
					<td><input name="userDto.msn" id="callShow_user_msn" class="input" /></td>
				</tr>
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.workAddress" /></td>
					<td><input name="userDto.officeAddress" id="callShow_user_officeAddress" class="input" /></td>
				</tr>
				<tr>
					<td class="formTableTd"><fmt:message key="label.user.description" /></td>
					<td><textarea name="userDto.description" id="callShow_user_description"  style="width:98%;height: 50px;" /></textarea></td>	
				</tr>
			</table>
			</form>
			</div>
			</div>
		</div>
	</div>
	
	<div region="south" style="height:40px;padding:5px">
		<a class="easyui-linkbutton" icon="icon-save" id="callShow_link_user_save"><fmt:message key="common.save" /></a>
	</div>
	
	<div id="realProcessTaskDiv" class="WSTUO-dialog" title="<fmt:message key="label.sla.updateBase.complete"/>">
		<form id="realProcessTaskfm" >
		<input name="taskDto.taskId" id="schedule_process_taskId" type="hidden"/>
		<table style="width:100%" class="lineTable" cellspacing="1">
			<tr id="schedule_process_realStartTimeTr" >
				<td style="width: 20%"><fmt:message key="lable.scheduledRealStartTime"/></td>
				<td style="width: 30%">
					<input name="taskDto.realStartTime" id="schedule_process_realStartTime" style="cursor:pointer;width:160px;" required="true"
					onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){schedule_process_realEndTime.focus();}})" />
				</td>
				<td style="width: 20%"><fmt:message key="lable.scheduledRealEndTime"/></td>
				<td  style="width: 30%">
					<input name="taskDto.realEndTime" id="schedule_process_realEndTime" style="cursor:pointer;width:160px;" class="easyui-validatebox input"  required="true" validType="DateComparison['schedule_process_realStartTime']"
					onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'schedule_process_realStartTime\')}',onpicked:function(){itsm.portal.schedule.calcDateTime($('#schedule_process_realStartTime').val(),$('#schedule_process_realEndTime').val());}})" />
				</td>
			</tr>
			<tr id="schedule_process_realFreeTr" >
				<td><fmt:message key="lable.scheduledRealFree"/></td>
				<td colspan="3">
					<input style="width: 40px" value="0" id="schedule_process_taskCostDay" class="easyui-numberbox" min="0" maxlength="9" required="true" onkeyup="calculationRealFree('_process')"><fmt:message key="label.sla.day"/>
					<input style="width: 40px" value="0" id="schedule_process_taskCostHour" class="easyui-numberbox" min="0" maxlength="9" required="true" onkeyup="calculationRealFree('_process')"><fmt:message key="label.sla.hour"/>
					<input style="width: 40px" value="0" id="schedule_process_taskCostMinute" class="easyui-numberbox" min="0" maxlength="9" required="true" onkeyup="calculationRealFree('_process')"><fmt:message key="label.sla.minute"/>
					<input type="hidden" name="taskDto.realFree" id="schedule_process_realFree"/>
				</td>
			</tr>
			<tr >
			<td><fmt:message key="label.processingResults"/></td>
			<td colspan="3">
				<textarea rows="3" cols="50" name="taskDto.treatmentResults" id="schedule_process_treatmentResults" class="easyui-validatebox input" validType="length[1,200]"></textarea>
			</td>
		</tr>
		<tr>
		<td colspan="4">
		<input type="hidden" id="schedule_process_operator" name="taskDto.operator" value="${loginUserName}"/>
		<a id="schedule_link_task_closedTask" class="easyui-linkbutton" icon="icon-save" ><fmt:message key="common.save"/></a></td>
		</tr>
		</table>
		</form>
	</div>
	
	<div id="portal_taskStat">
        <table>
            <!-- 我待处理的任务-->
            <sec:authorize url="request_menu_myStayDisposeTask">
            <tr>
                <td style="width: 1%;"><img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/></td>
                <td width="300"><a style="cursor:pointer" onClick="javascript:basics.tab.tabUtils.refreshTab('<fmt:message key ="lable.List.task.processed" />','common/jbpm/myOutstandingTasks.jsp')"><fmt:message key ="title.my.outstanding.tasks" /></a> &nbsp;<span style="color: #F00" id="myOutstandingTasks"></span></td>
                <td>&nbsp;</td>
            </tr>
            </sec:authorize>
            
            <!-- 我已处理的任务-->
            <sec:authorize url="/pages/problem/myProcessedTasks.action">
            <tr>
                <td>
                    <img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
                </td>
                <td>
                    <a style="cursor:pointer" onClick="javascript:basics.tab.tabUtils.addTab('<fmt:message key ="title.my.processed.tasks" />','common/jbpm/myProcessedTasks.jsp')">
                        <fmt:message key ="title.my.processed.tasks" />
                    </a> &nbsp;<span style="color: #F00" id="myProcessedTasks"></span>
                </td>
                <td>&nbsp;</td>
            </tr>
            </sec:authorize>
            
            <!-- 指派给我组的任务-->
            <sec:authorize url="request_menu_myDisposeTask">
            <tr>
                <td><img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/></td>
                <td><a style="cursor:pointer" onClick="javascript:basics.tab.tabUtils.addTab('<fmt:message key ="title.tasks.assigned.to.our.team" />','common/jbpm/tasksAssignedToOurTeam.jsp')"><fmt:message key ="title.tasks.assigned.to.our.team" /></a> &nbsp;<span style="color: #F00" id="tasksAssignedToOurTeam"></span></td> 
                <td>&nbsp;</td>
            </tr>
            </sec:authorize>
            
            <!-- 委托给我待处理的任务-->
            <sec:authorize url="request_menu_myStayDisposeTask">
            <tr>
                <td><img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/></td>
                <td><a style="cursor:pointer" onClick="javascript:basics.tab.tabUtils.refreshTab('<fmt:message key ="lable.List.task.processed" />','common/jbpm/myOutstandingTasks.jsp?taskTypes=proxy')"><fmt:message key ="lable.proxy.task" /></a> &nbsp;<span style="color: #F00" id="actingmyOutstandingTasks"></span></td>
                <td>&nbsp;</td>
            </tr>
            </sec:authorize>
        </table>
	</div>
	<div id="requestStatsLeftDiv" >
      		<div style="height:2px"></div>
      		<!-- 所有请求列表 -->
			<sec:authorize url="AllRequest_Res">
				<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
				<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('all');"><fmt:message key="title.request.allRequest" /></a> 
				<span style="color: #F00" id="view_allRequest"></span>
				<br />
				<div style="height:2px"></div>
			</sec:authorize>
			<!-- 我提出的请求 -->
			<sec:authorize url="MYREQUEST_RES">
				<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
				<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('myProposedRequest')"><fmt:message key="title.request.myRequest" /></a> 
				<span style="color: #F00" id="view_myProposedRequest"></span><br />
				<div style="height:2px"></div>
			</sec:authorize>
			<!-- 我组提出的请求 -->
			<sec:authorize url="request_menu_myGroupReferRequest">
				<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
				<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('myGroupProposedRequest')"><fmt:message key="title.request.myGroupProposedRequest" /></a> 
				<span style="color: #F00" id="view_myGroupProposedRequest"></span>
				<br />
				<div style="height:2px"></div>
			</sec:authorize>
			<!-- 我的描述不全、未提交 请求-->
			<sec:authorize url="REQUEST_MENU_MYUNTREADREQUEST">
			<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
			<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('myNotComprehensiveNotSubmitted')"><fmt:message key="label.MyNotComprehensiveNotSubmitted" /></a> 
			<span style="color: #F00" id="view_myNotComprehensiveNotSubmitted"></span>
			<br />
			<div style="height:2px"></div>
			</sec:authorize>
			<!-- 我负责的请求 -->
			<sec:authorize url="MyOwRquest_Res">
				<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
				<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('myOwnerRequest')"><fmt:message key="title.request.myChargeRequest" /></a> 
				<span style="color: #F00" id="view_myOwnerRequest"></span>
				<br />
				<div style="height:2px"></div>
			</sec:authorize>
			<!-- 指派给我的请求 -->
			<sec:authorize url="MyPeRquest_Res">
			<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
				<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('assigneeToMyRequest')"><fmt:message key="title.request.assignToMeRequest" /></a> 
				<span style="color: #F00" id="view_assigneeToMyRequest"></span>
				<br />
				<div style="height:2px"></div>
			</sec:authorize>
			<!-- 指派给我们组的请求 -->
			<sec:authorize url="MyGrRquest_Res">
			<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
				<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('assigneeGroupRequest')"><fmt:message key="title.request.myGroupRequest" /></a> 
				<span style="color: #F00" id="view_assigneeGroupRequest"></span>
				<br />
				<div style="height:2px"></div>
			</sec:authorize>
			<!-- 委托给我的请求-->
			<sec:authorize url="Request_Depute2Me_Res">
				<img src="../skin/default/images/countTriangle.png" style="padding-left: 5px;padding-right: 5px;"/>
				<a style="cursor:pointer" onClick="javascript:common.config.userCustom.dashboardDataLoad.requestCountSearch('actingToMyRequest')"><fmt:message key ="lable.proxy.Request" /></a>
				<span style="color: #F00" id="view_actingToMyRequest"></span>
				<br />
				<div style="height:2px"></div>
			</sec:authorize>
      	</div>
	<div id="LoginQuickCall_view" style="display: none;">
	<sec:authorize url="REQUERST_MENU_FOUNDREQUEST">
	<sec:authorize url="/pages/request!saveRequest.action">
	<div >
	<form id="fastCreateDiv_view_form">
	<input type="hidden" name="requestDTO.technicianName" value="${loginUserName}"  />
	<input type="hidden" name="requestDTO.createdByName" value="${loginUserName}"  />
	<input type="hidden" name="requestDTO.creator" value="${loginUserName}"  />
	<input type="hidden" name="requestDTO.companyNo" value="${sessionScope.companyNo}"/> 
	<input type="hidden" name="requestDTO.piv.approvalNo" value="0" />
	<input type="hidden" name="requestDTO.piv.eno"  />
	<input type="hidden" name="requestDTO.piv.etitle"  />
	<input type="hidden" name="requestDTO.piv.eventCode"  />
	<input type="hidden" name="requestDTO.actionName" value="<fmt:message key="common.add" />"  />
	<table style="width:100%;" cellspacing="1">
	
		<tr>
			<td><fmt:message key="common.title" /></td>
		</tr>
		<tr>
			<td class="lineTableTd">
				<input name="requestDTO.etitle" id="fastCreateEtitle_view" class="easyui-validatebox input" required="true" />
			</td>
		</tr>
		<tr><td><fmt:message key="common.content" /></td></tr>
		<tr>
			<td class="lineTableTd">
				<textarea  name="requestDTO.edesc" id="fastCreateEdesc_view" class="easyui-validatebox textarea"  required="true" /></textarea>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.priority" /></td>
		</tr>
		<tr>
			<td>
				<select id="fastRequest_priority_view" name="requestDTO.priorityNo" class="input"></select>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.effect" /></td>
		</tr>
		<tr>
			<td>
				<select id="fastRequest_effectRange_view" name="requestDTO.effectRangeNo" class="input"></select>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.request.seriousness" /></td>
		</tr>
		<tr>
			<td>
				<select id="fastRequest_seriousness_view" name="requestDTO.seriousnessNo" class="input"></select>
			</td>
		</tr>
		<tr>
			<td>
				
				<a  class="easyui-linkbutton" style="border:#99bbe8 1px solid" plain="true" icon="icon-save" onclick="fastCreateRequestView()"><fmt:message key="common.save" /></a>
			</td>
		</tr>
	</table>
	</form>
	</div>
	</sec:authorize>
	</sec:authorize>
	</div>

<!-- 任务添加编辑 -->
	<div id="scheduleAddEditTaskDiv" class="WSTUO-dialog" title="<fmt:message key="title.task.addOrEditTask"/>" style="width:500px;height:auto">
	<form id="scheduleTaskForm">
		
		<div class="lineTableBgDiv">
			<table style="width:100%" class="lineTable" cellspacing="1">
			<tr id="schedule_task_owner_tr">
				<td><fmt:message key="task.ownerName"/></td>
				<td><input id="schedule_task_owner" name="taskDto.owner"  style="width:80%" class="easyui-validatebox input"  type="hidden"/>
				<input id="schedule_task_owner_fullName"  style="width:80%" class="easyui-validatebox input" required="true" readonly/>
				<sec:authorize url="/pages/user!find.action"><a id="schedule_task_owner_link" style="cursor: pointer;" title="<fmt:message key="common.select"/>">
				<img src="../skin/default/images/user.png" style="vertical-align:middle;"></a></sec:authorize>
				</td>
			</tr>
			<tr style="display: none;">
				<td><fmt:message key="tool.affiche.creator" /></td>
				<td><input id="schedule_task_creator" name="taskDto.creator" value="${loginUserName}" style="width:80%" class="easyui-validatebox input" readonly="readonly"/>
				</td>
			</tr>
			<tr class="schedule_taskCycle_tr" id="schedule_task_taskType_tr">
				<td style="width:25%"><fmt:message key="label.dc.taskType"/></td>
				<td style="width:75%">
					<select name="taskDto.taskType" id="schedule_type" class="easyui-validatebox input" required="true"></select><input id="schedule_type_val" style="display: none;width:80%" disabled="disabled">
					<input type="hidden" name="taskDto.dno" id="schedule_type_no_access">
				</td>
			</tr>
			<tr>
				<td style="width:25%"><fmt:message key="common.title"/></td>
				<td style="width:75%">
					<input name="taskDto.title" id="schedule_taskTitle"  class="easyui-validatebox input" required="true"/>
				</td>
			</tr>
			<tr>
				<td style="width:25%"><fmt:message key="lable.task.location"/></td>
				<td style="width:75%">
					<input name="taskDto.location" id="schedule_taskLocation" class="input" />
				</td>
			</tr>
			<tr>
				<td style="width:25%"><fmt:message key="label.request.taskDescription"/></td>
				<td style="width:75%">
					<textarea name="taskDto.introduction" id="schedule_taskIntroduction"  style="height:80px" class="textarea easyui-validatebox" required="true"></textarea>
				</td>
			</tr>
			<tr id="scheduledSaskStatusTr" style="display: none;">
				<td><fmt:message key="title.task.taskStatus"/></td>
				<td>
					<input type="radio" name="taskDto.taskStatus" id="schedule_new" value="0" checked="checked" onclick="schedule_hiddenRealTime()"/><fmt:message key="title.newCreate" />
					<input type="radio" name="taskDto.taskStatus" id="schedule_processing" value="1" onclick="schedule_hiddenRealTime()" /><fmt:message key="title.task.processing"/>
					<input type="radio" name="taskDto.taskStatus" id="schedule_complete" value="2" onclick="schedule_showRealTime()"/><fmt:message key="titie.complete"/>
				</td>
			</tr>
			
		 <tr id="schedule_realStartTimeTr" style="display:none;">
			<td><fmt:message key="lable.scheduledRealStartTime"/></td>
			<td>
				<input name="taskDto.realStartTime" id="schedule_realStartTime" style="cursor:pointer;width:250px;" required="true" />
			</td>
		</tr>
		<tr id="schedule_realEndTimeTr" style="display: none;">
			<td><fmt:message key="lable.scheduledRealEndTime"/></td>
			<td>
				<input name="taskDto.realEndTime" id="schedule_realEndTime" style="cursor:pointer;width:250px;"  required="true" validType="DateComparison['schedule_realStartTime']" />
			</td>
		</tr>
		<tr id="schedule_realFreeTr" style="display:none;">
			<td><fmt:message key="lable.scheduledRealFree"/></td>
			<td>
				<input style="width: 40px" value="0" id="schedule_taskCostDay" class="easyui-numberbox" required="true" onkeyup="calculationRealFree('')">天
				<input style="width: 40px" value="0" id="schedule_taskCostHour" class="easyui-numberbox" required="true" onkeyup="calculationRealFree('')">时
				<input style="width: 40px" value="0" id="schedule_taskCostMinute" class="easyui-numberbox" required="true" onkeyup="calculationRealFree('')">分
				<input type="hidden" name="taskDto.realFree" id="schedule_realFree"/>
			</td>
		</tr>
		<tr class="schedule_taskCycle_tr" id="schedule_taskCycle_tr_id">
			<td ><fmt:message key="lable.task.taskCycle"/></td>
			<td>
				<div id="taskTypeForCycle">
				<input type="radio" name="taskDto.taskCycle" value="NO" id="schedule_taskCycle" checked="checked" /><label for="schedule_taskCycle"><fmt:message key="lable.task.taskCycleNo"/></label>
				<input type="radio" name="taskDto.taskCycle" value="WEEK" id="schedule_taskCycleWeek"  /><label for="schedule_taskCycleWeek"><fmt:message key="lable.task.taskCycleWeek"/></label>
				</div>
			</td>
		</tr>
		<tr class="normal_task_date_tr">
			<td><fmt:message key="lable.scheduledStartTime"/></td>
			<td>
				<input name="taskDto.startTime" type="hidden" id="schedule_taskStartTime_hid">
				<input class="easyui-validatebox schedule_taskTime" required="true" id="schedule_taskStartTime" size="15" 
				onfocus="WdatePicker({el:'schedule_taskStartTime_hid',dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){$dp.$('schedule_taskStartTime').value=$dp.cal.getDateStr('yyyy-MM-dd');$dp.$('schedule_taskStartTime_time').value=$dp.cal.getDateStr('HH:mm:ss');schedule_taskEndTime.focus();}})"/>&nbsp;&nbsp;
				<input size="10" id="schedule_taskStartTime_time" onfocus="WdatePicker({dateFmt:'HH:mm:ss',onpicked:function(){$('#schedule_taskStartTime_hid').val( $('#schedule_taskStartTime').val() +' '+ $('#schedule_taskStartTime_time').val());}})">&nbsp;&nbsp;&nbsp;
				<label><input type="checkbox" name="taskDto.allDay" value="true" id="schedule_taskAllDay"  /><fmt:message key="label.orgSettings.allDay"/></label>
			</td>
		</tr>
		<tr class="normal_task_date_tr">
			<td><fmt:message key="lable.scheduledEndTime"/></td>
			<td>
				<input name="taskDto.endTime" type="hidden" id="schedule_taskEndTime_hid">
				<input size="15" id="schedule_taskEndTime" class="easyui-validatebox schedule_taskTime" required="true" validType="DateComparison['schedule_taskStartTime']"
				onfocus="WdatePicker({el:'schedule_taskEndTime_hid',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'schedule_taskStartTime_hid\')}',onpicked:function(){$dp.$('schedule_taskEndTime').value=$dp.cal.getDateStr('yyyy-MM-dd');$dp.$('schedule_taskEndTime_time').value=$dp.cal.getDateStr('HH:mm:ss');}})"/>&nbsp;&nbsp;
				<input size="10" id="schedule_taskEndTime_time" onfocus="WdatePicker({dateFmt:'HH:mm:ss',onpicked:function(){$('#schedule_taskEndTime_hid').val( $('#schedule_taskEndTime').val() +' '+ $('#schedule_taskEndTime_time').val());}})">
			</td>
		</tr>
		<tr style="display: none;" id="schedule_taskCycle_week_tr">
			<td colspan="2" style="width: 100%;">
			<div id="schedule_taskCycle_tr_div_week">
			<table width="99%" class="lineTableBgDiv" class="lineTable" >
				<tr>
					<td colspan="3"><fmt:message key="lable.task.taskInfoSetting" />: </td>
					<td>
						<label><input type="checkbox" id="schedule_taskCycle_week_all" value="1" onclick="common.tools.scheduledTask.scheduledTask.checkAll('schedule_taskCycle_week_all','schedule_taskCycle_tr_div_week','taskDto.weekWeeks')" />
						<fmt:message key="label.date.weekly" /></label>
					</td>
				</tr>
				<tr>
					<td><label><input type="checkbox" id="checkbox_SUN" value="SUN" name="taskDto.weekWeeks" /><fmt:message key="label.orgSettings.sunday" /></label></td>
					<td><label><input type="checkbox" id="checkbox_MON" value="MON" name="taskDto.weekWeeks" /><fmt:message key="label.orgSettings.monday" /></label></td>
					<td><label><input type="checkbox" id="checkbox_TUE" value="TUE" name="taskDto.weekWeeks" /><fmt:message key="label.orgSettings.tuesday" /></label></td>
					<td><label><input type="checkbox" id="checkbox_WED" value="WED" name="taskDto.weekWeeks" /><fmt:message key="label.orgSettings.wednesday" /></label></td>
				</tr>
				<tr>
					<td><label><input type="checkbox" id="checkbox_THU" value="THU" name="taskDto.weekWeeks" /><fmt:message key="label.orgSettings.thursday" /></label></td>
					<td><label><input type="checkbox" id="checkbox_FRI" value="FRI" name="taskDto.weekWeeks" /><fmt:message key="label.orgSettings.friday" /></label></td>
					<td><label><input type="checkbox" id="checkbox_SAT" value="SAT" name="taskDto.weekWeeks" /><fmt:message key="label.orgSettings.saturday" /></label></td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td colspan="2" valign="top">
					<fmt:message key="lable.task.taskStartDate" />: <input type="text" name="taskDto.startDate" id="taskWeekStartDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',onpicked:function(){ $('#taskWeekEndDate').val( $('#taskWeekStartDate').val() ); } });"><!-- ,minDate:'%y-%M-{%d+1}' );-->
					</td>
					<td colspan="2" valign="top">
						<label><input type="radio" name="taskDto.cycleWeekEnd" checked="checked" value="NO"><fmt:message key="lable.task.taskCycleNoEnd" /></label><br>
						<label><input type="radio" id="taskCycleWeekEndCount" name="taskDto.cycleWeekEnd" value="COUNT"><fmt:message key="lable.task.taskCycleRepeat" />:&nbsp;&nbsp;&nbsp;<input type="text" size="3" value="5" name="taskDto.cycleCount" id="taskCycleWeekCount" validtype="count" class="easyui-numberbox validatebox-text" style="ime-mode: disabled;"> <fmt:message key="lable.task.taskCycleRepeatCount" /></label> <br>
						<label><input type="radio" id="taskCycleWeekEndDate" name="taskDto.cycleWeekEnd" value="DATE"><fmt:message key="lable.task.taskCycleEndDate" />:&nbsp;</label><input type="text" name="taskDto.endDate" id="taskWeekEndDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'taskWeekStartDate\')}'});"> <br>
					</td>
				</tr>
			</table>
			</div>
			</td>
		</tr>
		<tr style="display: none;">
			<td><fmt:message key="label.processingResults"/></td>
			<td>
				<textarea rows="3" cols="50" name="taskDto.treatmentResults" id="schedule_treatmentResults" class="easyui-validatebox input" ></textarea>
			</td>
		</tr>
			<tr>
				<td colspan="2">
				    <input type="hidden" name="taskDto.taskId" id="schedule_task_taskId" />
					<input type="hidden" id="schedule_task_operator" name="taskDto.operator" value="${loginUserName}"/>
					<a id="schedule_link_task_save_edit_ok" class="easyui-linkbutton" icon="icon-save" ><fmt:message key="common.save"/></a>
					<a id="schedule_link_task_save_edit_ok2" class="easyui-linkbutton" icon="icon-save" onclick="itsm.portal.schedule.saveTask()"><fmt:message key="common.save"/></a>
				</td>
			</tr>
		</table>
		</div>
	</form>
	</div>
	
	<!-- search task -->
	<div id="searchCalendarTask" class="WSTUO-dialog" icon="icon-search" title="<fmt:message key="common.search"/>-<fmt:message key="title.request.task" />" style="width:410px;height:auto">
	<form action="tasks!exportTask.action" method="post">
	<div class="lineTableBgDiv">
	<table style="width: 100%" class="lineTable" cellspacing="1">
		<tr>
		<sec:authorize url="/pages/user!find.action">
			<td width="100px"><fmt:message key="label.request.theTechnician"/></td>
			<td><input id="searchCalendarTask_owner" name="taskQueryDto.owner" style="width:79%" type="hidden"/>
			<input id="searchCalendarTask_owner_fullName" style="width:79%" readonly="readonly" />
			<a id="searchCalendarTask_owner_link" class="easyui-linkbutton" plain="true" icon="icon-user" title="<fmt:message key="common.select"/>"></a>
			</td>
		</sec:authorize>
		</tr>
		<tr>
			<td width="100px"><fmt:message key="label.title"/></td>
			<td><input id="searchTitle" name="taskQueryDto.title" style="width:96%" /></td>
		</tr>
		<tr style="display: none;">
			<td><fmt:message key="common.state" /></td>
			<td>
			<select id="search_task_statusNo" name="taskQueryDto.taskStatus" class="input" style="width:96%">
				<option value="">--<fmt:message key="common.pleaseSelect" />--</option>
				<option value="0"><fmt:message key="title.newCreate" /></option>
				<option value="1"><fmt:message key="title.task.processing" /></option>
				<option value="2"><fmt:message key="titie.complete" /></option>
			</select>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.dc.taskType" /></td>
			<td>
			<select id="Task_type" name="taskQueryDto.dcode" class="input" style="width:96%">
				
			</select>
			</td>
		</tr>
		<tr>
			<td><fmt:message key="label.dateRange"/></td>
			<td>
				<input id="searchStartTime" class="easyui-validatebox input"  validType="date" name="taskQueryDto.startTime" style="width:90px" readonly="readonly"/>&nbsp;<fmt:message key="setting.label.to"/>&nbsp;
				<input id="searchEndTime" class="easyui-validatebox input"  validType="DateComparison['searchStartTime']" name="taskQueryDto.endTime" style="width:90px" readonly="readonly"/>
				<a class="easyui-linkbutton" plain="true" icon="icon-clean" onclick="cleanIdValue('searchStartTime','searchEndTime')" title="<fmt:message key="label.request.clear" />"></a></td>
		</tr>
	
		<tr>
			<td colspan="2" style="padding-top: 8px;">
			<a id="link_calendarTask_search_ok" class="easyui-linkbutton" icon="icon-search"><fmt:message key="common.search"/></a>
			<span id="calendarTask_search_result" style="color:red"></span>
			</td>
		</tr>
	</table>
	</div>
	</form>
	</div>
	
	<!-- 当前任务详细 -->
	<div id="calendarTaskDiv" class="WSTUO-dialog" title="<fmt:message key="common.detailInfo" />" style="max-height:400px;width: 400px; height:auto; padding:0px;">
		<form id="calendarTaskForm">
			<input id="calendarTaskId" type="hidden" /> 
			<div class="lineTableBgDiv">
				<table style="width:100%" class="lineTable" cellspacing="1">
				<tr id="task_info_win">
					<td colspan="4" align="left">
						<a class="easyui-linkbutton" plain="true" id="schedule_task_process_but" >
							<fmt:message key="label.request.startProcess"/></a>
						<a class="easyui-linkbutton" plain="true" id="schedule_task_closed_but" >
							<fmt:message key="label.sla.updateBase.complete"/></a>	
						<a class="easyui-linkbutton" plain="true" id="schedule_task_remark_but" >
							<fmt:message key="label.request.processMark"/></a>
						<a class="easyui-linkbutton" plain="true" onclick="itsm.portal.schedule.showHistoryRecode()">
							<fmt:message key="lable.task.showHistoryRecode"/></a>
						<a class="easyui-linkbutton" plain="true" id="schedule_task_edit_but" icon="icon-edit" title="<fmt:message key="common.edit"/>">
							</a>
						<a class="easyui-linkbutton" plain="true" id="schedule_task_delete_but" icon="icon-cancel" title="<fmt:message key="common.delete"/>">
							</a>
					</td>
				</tr>
				<tr id="addcalendarTreatmentResultsTr" style="display: none;">
				<td colspan="4">
				<textarea rows="3" cols="50" name="taskDto.treatmentResults" id="addcalendarTreatmentResults" class="easyui-validatebox input" ></textarea>
				<a id="schedule_link_task_remarkTask" class="easyui-linkbutton" icon="icon-save" plain="true"><fmt:message key="common.save"/></a>
				</td>
				</tr>
				<tr>
					<td style="width:20%;" class="label_color_rgb1"><fmt:message key="task.ownerName"/></td>
					<td style="width:30%">
						<span id="calendarTaskOwner"></span>
					</td>
					<td style="width:20%" class="label_color_rgb1"><fmt:message key="tool.affiche.creator" /></td>
					<td>
						<span id="calendarTaskCreator"></span>
					</td>
				</tr>
				<tr>
					<td class="label_color_rgb1"><fmt:message key="common.title"/></td>
					<td >
						<span id="calendarTaskTitle"></span>
						<!--<input name="taskDto.title" id="calendarTaskTitle"  class="easyui-validatebox input" required="true" />-->
					</td>
					<td class="label_color_rgb1"><fmt:message key="lable.task.location"/></td>
					<td>
						<span id="calendarTaskLocation"></span>
						<!--<input name="taskDto.location" id="calendarTaskLocation" class="easyui-validatebox input" />-->
					</td>
					
				</tr>
				<tr>
					<td class="label_color_rgb1"><fmt:message key="label.request.taskDescription"/></td>
					<td colspan="3">
						<span id="calendarTaskIntroduction"></span>
						<!--<textarea name="taskDto.introduction" id="calendarTaskIntroduction"  style="height:50px" class="easyui-validatebox input" ></textarea>-->
					</td>
				</tr>
				<tr>
					<td class="label_color_rgb1"><fmt:message key="label.dc.taskType"/></td>
					<td colspan="3">
						<span id="taskType"></span>
						<!--<textarea name="taskDto.introduction" id="calendarTaskIntroduction"  style="height:50px" class="easyui-validatebox input" ></textarea>-->
					</td>
				</tr>
				<tr>
					<td class="label_color_rgb1"><fmt:message key="title.task.taskStatus"/></td>
					<td>
						<span id="calendarTaskStatus"></span>
						</td>
					<td class="label_color_rgb1"><fmt:message key="label.orgSettings.allDay"/></td>
					<td>
						<span id="calendarTaskAllDay"></span>
						<!--<input type="checkbox" name="taskDto.allDay" value="true" id="calendarTaskAllDay"  />-->
					</td>
				</tr>
				<tr>
					<td class="label_color_rgb1"><fmt:message key="lable.scheduledStartTime"/></td>
					<td>
						<span id="calendarTaskStartTime"></span>
						<!--<input name="taskDto.startTime" id="calendarTaskStartTime" class="easyui-datebox easyui-validatebox input" required="true"  style="cursor:pointer" />-->
					</td>
					<td class="label_color_rgb1"><fmt:message key="lable.scheduledEndTime"/></td>
					<td>
						<span id="calendarTaskEndTime"></span>
						<!--<input name="taskDto.endTime" id="calendarTaskEndTime" class="easyui-datebox easyui-validatebox input" required="true" validType="DateComparison['calendarTaskStartTime']" style="cursor:pointer" />-->
					</td>
				</tr>
				<tr class="taskRealTime_tr">
					<td class="label_color_rgb1"><fmt:message key="lable.scheduledRealStartTime"/></td>
					<td>
						<span id="calendarRealStartTime"></span>
					</td>
					<td class="label_color_rgb1"><fmt:message key="lable.scheduledRealEndTime"/></td>
					<td>
						<span id="calendarRealEndTime"></span>
					</td>
				</tr>
				<tr class="taskRealTime_tr">
					<td class="label_color_rgb1"><fmt:message key="lable.scheduledRealFree"/></td>
					<td >
						<span id="calendarRealFree"></span>
					</td>
					<td class="label_color_rgb1"><fmt:message key="lable.task.startToEedTime"/></td>
					<td >
						<span id="taskStartToEedTime"></span>
					</td>
				</tr>
				<tr style="display: none;" id="calendarResults_tr">
					<td class="label_color_rgb1"><fmt:message key="label.processingResults"/></td>
					<td colspan="3" >
						<span id="calendarResults"></span>
					</td>
				</tr>
				<tr id="calendarTreatmentResults_tr" style="display: none;">
					<td class="label_color_rgb1"><fmt:message key="lable.task.historyRecode"/></td>
					<td colspan="3">
						<div id="calendarTreatmentResults" style="max-height: 110px; overflow: auto;">&nbsp;</div>
					</td>
				</tr>
				<tr style="display: none">
					<td colspan="2">
					    <input type="hidden" name="taskDto.taskId" id="calendarTask_taskId" />
					    <input type="hidden" id="calendarTask_owner" name="taskDto.owner" value="${loginUserName}"/>
						<input type="hidden" id="calendarTask_operator" name="taskDto.operator" value="${loginUserName}"/>
						<a onclick="javascript:itsm.portal.calendar.saveCalendarTask('editTask')" class="easyui-linkbutton" icon="icon-edit"><fmt:message key="common.edit"/></a>
						<a onclick="javascript:itsm.portal.calendar.saveCalendarTask('saveTask')" class="easyui-linkbutton" icon="icon-save"><fmt:message key="common.add"/></a>
					</td>
				</tr>
			</table>
			</div>
		</form>
	</div>
</div>

</div>
<script>

var messageTd = document.getElementById("messageTd");
if(messageTd!=null && messageTd!='null'&&msg!='' ){
 	messageTd.innerHTML=messageTd_msg;
 	messageTd.style.color="#0000CC";	
 }
$(function(){
	var height=browserProp.browserProp.getWinHeight();
	$("#helpdeskPortalDiv").height(height-123);
});
$(document).ready(helpdeskPortal.init);
</script>